const getUrl = function(url) {
  return window.sessionStorage.getItem(url)
}
// const getUrl = url => window.sessionStorage.getItem(url)

// const setUrl = (url, value) => window.sessionStorage.setItem(url, value)
const setUrl = function(url, value) {
  return window.sessionStorage.setItem(url, value)
}

// const removeUrl = url => window.sessionStorage.removeItem(url)
const removeUrl = function(url) {
  return window.sessionStorage.removeItem(url)
}

// 清空所有缓存
const clearUrl = function() {
  return window.sessionStorage.clear()
}

export { getUrl, setUrl, removeUrl, clearUrl }
